﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Student:father
    {
       
            private string major;
            private int grade;
            public int Grade
            {
                get { return this.grade; }
                set { this.grade = value; }

            }
            public string Major
            {
                get { return this.major; }
                set { this.major = value; }

            }
            public Student(string name)
            {

                this.Name = "cai";
                this.Id = 1;
                this.Sex = "男";
                this.Tel = 15452245461545;
                this.grade = 5;
                this.Cardid = 15451515415154105;
                this.major = "软件";
                Console.WriteLine(this.Name);
                Console.WriteLine(this.Id);
                Console.WriteLine(this.Sex);
                Console.WriteLine(this.Tel);
                Console.WriteLine(this.Cardid);
                Console.WriteLine(this.major);
            }
        }
    }

